package coffeenc.mall.admin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "UmsResource")
public class UmsResource implements Serializable {
    private Long id;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "资源名称")
    private String name;
    @ApiModelProperty(value = "资源URL")
    private String url;
    @ApiModelProperty(value = "资源描述")
    private String description;
    @ApiModelProperty(value = "资源ID")
    private String categoryId;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder stringBuilder =  new StringBuilder();
        stringBuilder.append(getClass().getSimpleName());
        stringBuilder.append("[");
        stringBuilder.append("Hash = ").append(hashCode());
        stringBuilder.append(", id = ").append(id);
        stringBuilder.append(", createTime = ").append(createTime);
        stringBuilder.append(", name = ").append(name);
        stringBuilder.append(", url = ").append(url);
        stringBuilder.append(", description = ").append(description);
        stringBuilder.append(", categoryId = ").append(categoryId);
        stringBuilder.append(", serialVersionUID = ").append(serialVersionUID);
        stringBuilder.append("]");
        return stringBuilder.toString();
    }

    /**
     * Getter all exclude serialVersionUID
     * Setter all exclude serialVersionUID
     */

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }
}
